package com.shang

/**
  * Created by shangyanshuo048 on 2017/6/20.
  */
object arrayTest extends App{
  var increase=(x:Int)=>x+1
  val someNumbers = List ( -11, -10, - 5, 0, 5, 10)
  var b = someNumbers.foreach(increase)
  println(b.getClass)
  var c = someNumbers.map(increase)
  println(c.getClass)

  c.foreach((x:Int)=>print(x+" "))
  println()
  c.map((x:Int)=>print(x+" "))

}
